<script setup>
import axios from 'axios';
import {ref} from 'vue'
import { getnav } from '@/api/api';
let nav = ref([])
getnav('https://fc-mp-827be4c1-176f-4e1f-985a-621b4417eadf.next.bspapp.com/api/web/pub/getCategoryIndexShow')
.then(res=>{
    // console.log(res);
    nav.value = res.data.category
    
})
</script>

<template>
    <div class="header">
        <van-search
            show-action
            placeholder="请输入搜索关键词"
        />
    </div>
</template>